package com.sheep.springboot.controller;

import com.sheep.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * author: sheep.Old
 * qq: 64341393
 * Created 2018/11/1
 */
@RestController
@RequestMapping("/user")
public class MyBatisController {

    @Autowired
    public UserMapper userMapper;

    @RequestMapping("/all")
    public Object users(){
        return userMapper.selectAllUsers();
    }




}
